
<div id="adm-add-user" title="Новый пользователь" style="display: none;">
	<p class="validateTips">Все поля обязательные.</p>
	<form id="add-user-form">
	<fieldset>
		<label for="username">Логин</label>
		<input type="text" name="username" id="username" class="text ui-widget-content ui-corner-all" />
		<label for="domain">Домен</label>
                <select name="domain" id="domain">
                <?php
                    foreach($domains as $key => $value):
                ?>
                    <option value="<?=$value?>"><?=$key?></option>
                <?php
                    endforeach;
                ?>
                </select>
		<label for="userdescr">Описание</label>
		<input type="text" name="userdescr" id="userdescr" class="text ui-widget-content ui-corner-all" />
		<!--input type="text" name="domain" id="domain" value="" class="text ui-widget-content ui-corner-all" /-->
                <p class="ui-state-highlight">Каждому новому пользователю, по умолчанию, присваиваются права <b>User</b></p>
	</fieldset>
	</form>
</div>


<div id="adm-update-user" title="Данные пользователя" style="display: none;">
        <p class="validateTips">Все поля обязательные.</p>
	<form id="upd-user-form">
	<fieldset>
		<input type="hidden" name="userid" id="userid" />
		<label for="username">Логин</label>
		<input type="text" name="username" id="username" class="text ui-widget-content ui-corner-all" />
		<label for="domain">Домен</label>
		<select name="domain" id="domain">
                <?php
                    foreach($domains as $key => $value):
                ?>
                    <option value="<?=$value?>"><?=$key?></option>
                <?php
                    endforeach;
                ?>
                </select>
                <label for="roleid">Role</label>
                <select name="roleid" id="roleid">
                <?php
                    foreach ($role_list as $key => $value):
                ?>
                        <option value="<?=$key?>"><?=$value['role_name']?></option>
                <?php
                    endforeach;
                ?>
                </select>
                <label for="userdescr">Описание</label>
		<input type="text" name="userdescr" id="userdescr" class="text ui-widget-content ui-corner-all" />
                <input type="checkbox" id="uptrashuser" name="uptrashuser" /> <label for="uptrashuser">Чистить мусор</label>
	</fieldset>
	</form>
</div>

<div id="adm-add-role" title="Права доступа" style="display: none;">
	<p class="validateTips">Все поля обязательные.</p>

	<form id="add-role-form">
	<fieldset>
		<label for="rolename">Название</label>
		<input type="text" name="rolename" id="rolename" class="text ui-widget-content ui-corner-all" />
		<label for="roledescription">Описание</label>
		<input type="text" name="roledescription" id="roledescription" value="" class="text ui-widget-content ui-corner-all" />
	</fieldset>
	</form>
</div>

<!--div id="adm-upd-role" title="Изменить права доступа" style="display: none;">
        <p class="validateTips"></p>
        <table height="95%" width="100%" border="1"><tr>
                <td valign="top" class="resizable">
                    <div class="treeOut" id="treeOut" height="100%">
                        &nbsp;
                    </div>
                </td>
                <td valign="top" width="300">
                    <form id="upd-role-form">
                    <fieldset>
                            <input type="hidden" name="roleid" id="roleid" />
                            <label for="rolename">Название</label>
                            <input type="text" name="rolename" id="rolename" class="text ui-widget-content ui-corner-all" />
                            <label for="roledescription">Описание</label>
                            <input type="text" name="roledescription" id="roledescription" value="" class="text ui-widget-content ui-corner-all" />
                            <label for="rolekeys">role keys</label>
                            <textarea name="rolekeys" id="rolekeys" class="text ui-widget-content ui-corner-all"></textarea>
                            <button class="button" name="roleclear" id="roleclear">Очистить</button>
                    </fieldset>
                    </form>
                </td>
        </tr></table>
</div-->

<div id="adm-upd-role" title="Изменить права доступа" style="display: none;">
        <div id="leftRoleContaner">
            <div class="treeOut" id="treeOut">
                &nbsp;
            </div>
        </div>
        <div id="rightRoleContaner">
            <p class="validateTips"></p>
            <form id="upd-role-form">
                <fieldset>
                    <input type="hidden" name="roleid" id="roleid" />
                    <input type="hidden" name="rolekeys" id="rolekeys" />
                    <label for="rolename">Название</label>
                    <input type="text" name="rolename" id="rolename" class="text ui-widget-content ui-corner-all" />
                    <label for="roledescription">Описание</label>
                    <input type="text" name="roledescription" id="roledescription" value="" class="text ui-widget-content ui-corner-all" />
                    
                    <label for="start_date_allow">Начальная дата</label>
                    <input type="text" name="start_date_allow" id="start_date_allow" class="text ui-widget-content ui-corner-all" />
                    <label for="end_date_allow">Конечная дата</label>
                    <input type="text" name="end_date_allow" id="end_date_allow" class="text ui-widget-content ui-corner-all" />
                    
                    <label for="roletitle">Узлы</label>
                    <textarea name="roletitle" id="roletitle" class="text ui-widget-content ui-corner-all" disabled></textarea>
                    <button class="button" name="roleclear" id="roleclear">Очистить</button>&nbsp;&nbsp;
                    <button class="button" name="addroot" id="addroot">Set Root</button>&nbsp;&nbsp;
                    <!--button class="button" name="uptrash" id="uptrash">Почистить мусор</button-->
                    <input type="checkbox" id="uptrashrole" name="uptrashrole" /> <label for="uptrashrole">Чистить мусор</label>
                </fieldset>
            </form>
        </div>
</div>


<div id="adm-file-editor" title="Изменить файл" style="display: none;">
    <form id="file-editor-form">
        <fieldset>
            <label for="roletitle">Файл</label>
            <textarea name="filedescription" id="filedescription" class="text ui-widget-content ui-corner-all"></textarea>
            <label for="rolename">Генерировать md5</label>
            <input type="text" name="cleanstring" id="cleanstring" class="text ui-widget-content ui-corner-all" />
            <input type="text" name="md5string" id="md5string" class="text ui-widget-content ui-corner-all" />
        </fieldset>
    </form>
</div>

<div id="confirm-refresh-db" title="Внимание" style="display: none;">
	<p><span class="ui-icon ui-icon-alert" style="float:left; margin:0 7px 20px 0;"></span>Операция обновления может занимать несколько минут</p>
</div>

<div id="progress-refresh-db" title="Обновление" style="display: none;">
	<div id="progressbar-refresh-db"></div>
</div>